package com.yupi.springdata.springdataredis.repository;

import com.yupi.springdata.springdataredis.pojo.User;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * redis repository
 * CrudRepository 提供基本CRUD
 * PagingAndSortingRepository 在基本CRUD的基础上还提供了分页和排序
 * 实现机制：JDK动态代理，生成调用对应jedis命令
 * @author li
 */
public interface UserRepository extends PagingAndSortingRepository<User, Integer> {
}
